import java.util.Scanner;

public class CarText {
    public static void main(String[] args) {
        Car c = new Car();
        Scanner in = new Scanner(System.in);
        System.out.println("发动机的排量");
        c.fadonji.pailiang = in.nextInt();
        System.out.println("发动机的重量");
        c.fadonji.zhongliang = in.nextInt();
        System.out.println("发动机的品牌");
        c.fadonji.pingpai = in.next();
        System.out.println("发动机的马力");
        c.fadonji.mali = in.nextInt();
        System.out.println("汽车轮胎");
        c.lontai=in.next();
        System.out.println("汽车车架");
        c.chejia=in.next();
        System.out.println("汽车底盘");
        c.dipan=in.next();
        System.out.println("汽车价格");
        c.jiage= in.next();
        System.out.println("汽车外观");
        c.waiguan=in.next();
        c.xinxi();

        for(;;){
            System.out.println("请选择你的操作");
            System.out.println("1：启动");
            System.out.println("2：停止");
            System.out.println("3：（其他）：鸣笛");
            int num=in.nextInt();
            if(num==1){
                c.qido();
            }else if(num==2){
                c.tingzhi();
                return;
            }else {
                c.mingdi();
            }
            System.out.println("输入任意值继续");
            String ry=in.next();









        }

    }
}
